﻿using Xhelper.Models;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;
using Xhelper.Models;

namespace Xhelper.ApiGate
{
    public class ApiException : BaseException
    {
        public ApiException(string msg, ApiError code) : base(msg)
        {
            base.ErrCode = (int)code;
        }
    }

    public enum ApiError
    {
        ApiConfigError = 400,
        ApiResponseError = 500,
        ApiRequestError = 300,
        ApiUnauthorized = 401,
        ApiInternalServerError = 500,
        ApiTimeout = 504,

    }
}
